package org.example.oop;
class ClassA{
    private int a;
   //public ClassA(){}
    public ClassA(int a){
        this.a=a;
    }
    public void show(){
        System.out.println(a);
    }
}
class ClassB extends ClassA{
    public ClassB(){
        //super();
        super(10);
    }

    @Override
    public void show() {
        System.out.println(System.nanoTime());
        super.show();//调用父类方法
        System.out.println(System.nanoTime());
    }
}
public class SuperTests {
    public static void main(String[] args) {
          ClassB cb=new ClassB();
          cb.show();
    }
}
